package com.jdbc;

/**
 * @author lenovo
 * @Description
 * @Date2025-2-26 14:12
 */
public class Pet {
    private int id;
    private int user_id;
    private String petname;
    private String type;
    private int age;
    private String gender;

    public Pet(int id, int user_id, String petname, String type, int age, String gender) {
        this.id = id;
        this.user_id = user_id;
        this.petname = petname;
        this.type = type;
        this.age = age;
        this.gender = gender;
    }



    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getPetname() {
        return petname;
    }

    public void setPetname(String petname) {
        this.petname = petname;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "Pet{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", petname='" + petname + '\'' +
                ", type='" + type + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                '}';
    }
}

